import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from "pinia"
// import "./assets/todo.css"

import router from "./router/index"

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


let app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

const pinia = createPinia();

app.use(pinia)
app.use(router); // 注册路由
app.use(ElementPlus); // 注册ElementPlus

app.mount('#app')
